package JavaBase.三大特性.pojo;

/**
 * @author ligaojian
 * @version 1.0
 * @description: 动物实体类
 * @date 2021/11/9 11:30
 */
public class Animal {

    public String name;

    public Integer age;

    public void eat() {
        System.out.println("我每天都要干饭！");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
